import document from '@ohos.document';
import window from '@ohos.window';

export default {
  data: {
    leftTitle: ['title-left1', 'title-left2', 'title-left3','title-left4','title-left5','title-left6'],
    rightTitle: ['title-right1', 'title-right2', 'title-right3','title-right4','title-right5','title-right6'],
  },
  onInit() {

  },
  onCreate() {


  },
  onShow(){

  },
  ckRight(index){
    let idx = index
    console.log('当前点击的是-----'+this.rightTitle[idx])
  },
  toTop(){
    this.$element('todo').scrollTop({
      smooth:true
    })
  }
}
